package io.renren.modules.xiaoqu.service.impl;/*
 *项目名: renren-fast
 *文件名: MainTenanceService
 *创建者: GXiao
 *创建时间:2022/6/4 14:41
 *描述: TODO
 */

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import io.renren.modules.xiaoqu.dao.ComplainDao;
import io.renren.modules.xiaoqu.dao.MainTenanceDao;
import io.renren.modules.xiaoqu.entity.ComplainEntity;
import io.renren.modules.xiaoqu.entity.MaintenanceEntity;
import io.renren.modules.xiaoqu.service.ComplainService;
import io.renren.modules.xiaoqu.service.MainTenanceService;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service("mainTenanceService")
public class MainTenanceServiceImpl extends ServiceImpl<MainTenanceDao, MaintenanceEntity> implements MainTenanceService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<MaintenanceEntity> page = this.page(
                new Query<MaintenanceEntity>().getPage(params),
                new QueryWrapper<MaintenanceEntity>()
        );

        return new PageUtils(page);
    }
}
